﻿@model IEnumerable<ISS.Models.Images>
@{
    ViewBag.Title = "Index";
}


<div style="position:relative;">
@{
    int left = 0;
    int top = 0;
    int index = 0;

    foreach (ISS.Models.Images image in Model)
    {
        <div class="pin" style="top: @{Write(top + "px");};
                left: @{Write(left + "px");};">
            <img src='@Url.Content("~" + image.ImageThumbnail)' />
        </div>
        
        index++;
        if(index % 3 == 0){
            left = 0;
            top += 500;
        }else{
            left += 270;
        }
        //Write(album.AlbumName);    
    }
}
</div>

